import { Router } from 'hyper-express';
import requireUser from '../../../middlewares/auth/requireUser';
import cache from '../../../middlewares/cache';
import rowLevelPermission from '../../../middlewares/auth/rowLevelPermission';
//#region AutoCreateCode
import { uctooCustomerStatusController } from '../../../controllers';
const uctoocustomerStatusRouter = new Router();
const customerStatusController = new uctooCustomerStatusController();

uctoocustomerStatusRouter.post('/add', requireUser, customerStatusController.add);
uctoocustomerStatusRouter.post('/edit', requireUser, rowLevelPermission('uctoo/customer_status'), customerStatusController.edit);
uctoocustomerStatusRouter.post('/del', requireUser, rowLevelPermission('uctoo/customer_status'), customerStatusController.delete);

//For getting customerStatus with permission control
uctoocustomerStatusRouter.get('/:id', requireUser,  rowLevelPermission('uctoo/customer_status'), customerStatusController.getSingle);
uctoocustomerStatusRouter.get('/:limit/:page', requireUser,  rowLevelPermission('uctoo/customer_status'), customerStatusController.getMany);
uctoocustomerStatusRouter.get('/:limit/:page/:skip', requireUser,  rowLevelPermission('uctoo/customer_status'), customerStatusController.getMany);

//#endregion AutoCreateCode
export default uctoocustomerStatusRouter;
